<template>
  <div class="title">
    <!-- <img :src="urls.getAssetsFile(`${imgUrl}`)" alt="" /> -->
    <img src="@/assets/xinshuoImages/titleLogo2.png" alt="" class="confirmLogo" />
    <p>{{ title }}</p>
    <img :src="urls.getAssetsFile(`${imgUrl1}`)" alt="" class="smallLogo" />
    <img v-if="showTwo" :src="urls.getAssetsFile(`${imgUrl2}`)" alt="" class="smallLogo" />
  </div>
</template>

<script setup>
import urls from '@/utils/url'

const props = defineProps({
  showTwo: {
    type: Boolean,
    default: false,
  },
  imgUrl1: {
    type: String,
    default: '',
  },
  title: {
    type: String,
    default: '',
  },
  imgUrl2: {
    type: String,
    default: '',
  },
})
</script>

<style lang="scss" scoped>
// 弹性盒子
@mixin common() {
  display: flex;
  align-items: center;
}
.title {
  @include common;
  // width: 218px;
  height: 36px;
  background: #1d6be1;
  border-radius: 2px 2px 2px 2px;
  font-size: 18px;
  font-family:
    Source Han Sans CN-Medium,
    Source Han Sans CN;
  font-weight: 500;
  color: #ffffff;
  line-height: 36px;
  // padding: 0 12px;
  margin-bottom: 14px;
  .confirmLogo {
    margin: 0 13px;
    margin-right: 7px;
  }
  .smallLogo {
    margin-left: 12px;
  }
  p {
    height: 36px;
  }
}
</style>
